@box-radius: 10px;
.player-container {
  width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  .player-header {
    width: 240px;
    background-color: rgba(299, 259, 249, 0.6);
    border-radius: @box-radius @box-radius 0 0;
    transition: height 0.8s;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: hidden;

    .music-title-box {
      width: 120px;
      height: 20px;
      overflow: hidden;
      position: relative;

      .music-title {
        font-size: 14px;
        font-weight: bolder;
        white-space: nowrap;
        color: #131824;
        letter-spacing: 2px;
        line-height: 20px;
        height: 120px;
        overflow-x: auto;
        position: absolute;
      }

      .music-title-scroll {
        animation: scroll 10s linear infinite;
      }
    }

    .music-author {
      font-size: 12px;
      text-align: left;
      width: 120px;
    }
  }

  .player-control {
    width: 300px;
    height: 65px;
    border-radius: @box-radius;
    background-color: rgba(299, 299, 299, 0.9);
    color: #7a7374;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;

    .player-face {
      position: absolute;
      background: url("../../../../public/images/home.jpg") 1%;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      left: 40px;
      top: -36px;
      overflow: hidden;
    }

    .player-face-animation {
      animation: rotate 15s linear infinite;
    }

    .player-face::after {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: #fff;
      content: "";
      position: absolute;
    }
  }

  .icon-common {
    font-size: 28px;
    margin: 0 10px;
    padding: 6px;
    transition: background-color 1s;
    border-radius: 4px;
  }

  .icon-common:hover {
    cursor: pointer;
    background-color: rgba(197, 199, 203, 1);
    transition: background-color 1s;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}